﻿using GDGeek;
using MrPP.Myth;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.SerriedCabinet
{
    public class InitAsgardPose : MonoBehaviour
    {
//private TransformData _data;
        // Start is called before the first frame update
        void Start()
        {
         //   Transform tsf = this.transform;
          //  _data.write(ref tsf, TransformData.Type.World);
            Yggdrasil.AsgardPose aPose = new Yggdrasil.AsgardPose(this.transform.position, this.transform.up, this.transform.forward, this.transform.lossyScale);
            Yggdrasil.WorldPose wPose = Yggdrasil.Instance.getWorldPose(aPose);
            this.transform.position = wPose.position;
            this.transform.LookAt(wPose.forward, wPose.up);
          //  this.transform

        }

     
    }
}